package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: UserEnum
 * @projectName smart-sail
 * @description: 用户状态枚举 员工在职状态
 * @date 2019/7/310:03
 */
public enum  UserStatusEnum implements IEnum{

    ZZ(1, "在职"),
    GSQC(2, "公司请辞"),
    ZDLZ(3, "主动离职");

    UserStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }
    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
